home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1993 / MacHack 1993.toast / MacHack™ 1987-1992 / MacHack™ '90 / Other Stuff / Demos ƒ / TOPS SoftTalk Package / STServer ƒ / CSTServerApp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-06  |  1.9 KB  |  75 lines  |  [TEXT/MPS ]

  1. /*
  2. ------------------------------------------------------------------------------
  3. |    Sun Microsystems, TOPS Division
  4. |    950 Marina Village Parkway
  5. |    P.O. Box 4016
  6. |    Alameda, CA 94501
  7. |    
  8. |    Copyright (c) 1989 Sun Microsystems, Inc. All rights reserved.
  9. |    
  10. |    Sun considers its source code as an unpublished, proprietary trade secret,
  11. |    and it is available only under strict license provisions. This copyright
  12. |    notice is placed here only to protect Sun in the event the source is deemed
  13. |    a published work. Disassembly, decompilation, or other means of reducing the
  14. |    object code to human readable form is prohibited by the license agreement
  15. |    under which this code is provided to the user or company in possession of
  16. |    this copy.
  17. |    
  18. |    RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the Government
  19. |    is subject to restrictions as set forth in subparagraph (c) (1) (ii) of the
  20. |    Rights in Technical Data and Computer Software clause at DFARS 52.227-7013
  21. |    and in similar clauses in the FAR and NASA FAR supplement.
  22. ------------------------------------------------------------------------------
  23. */
  24.  
  25.  
  26.  
  27.  
  28. /*
  29.  
  30.     INTERFACE CSTServerApp
  31.  
  32. */
  33.  
  34. #ifndef __CSTServerApp__
  35. #define __CSTServerApp__
  36.  
  37.  
  38. #include "CApplication.h"
  39. #include "CWriteLnWindow.h"
  40. #include <MenuMgr.h>
  41. #include "SoftTalk.h"
  42.  
  43.  
  44. struct CSTServerApp:CApplication {
  45.     MenuHandle fAppleMenu, fFileMenu, fEditMenu, fServerMenu;
  46.     CWriteLnWindow* fWindow;
  47.     BOOLEAN fServerIsOpen;
  48.     
  49.     void ISTServerApp(void);
  50.     void MainEventLoop(void);
  51.     void CreateMenus(void);
  52.     void CreateWindow(void);
  53.  
  54.     void DoIdle(EventRecord* e);
  55.     
  56.     void CreateServer(void);
  57.     void DestroyServer(void);
  58.     
  59.     void Msg(Str255 msg);
  60.     void NewLine(void);
  61.  
  62.     INT16 MenuSelectionToCmd(INT16 menu, INT16 item);
  63.     void DoMenuCmd(INT16 cmd);
  64.     
  65.     /* menu actions */
  66.     void Quit(void);
  67.     void DoClear(void);
  68.     void DoDebugger(void);
  69.     void DoCreateServer(void);
  70.     void DoDestroyServer(void);
  71. };
  72.  
  73.  
  74.  
  75. #endif